package com.oprekTA;

import com.play_video.PlayVideo_activity;
import com.record_video.RecordVideo_activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class mainTA extends Activity {
	private Button buttonRecord;
	private Button buttonPlay;
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        this.buttonRecord = (Button) this.findViewById(R.id.button1);
        this.buttonRecord.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent myIntent = new Intent(v.getContext(), RecordVideo_activity.class);
				startActivityForResult(myIntent, 0);
			}
		});
        this.buttonPlay = (Button) this.findViewById(R.id.button2);
        this.buttonPlay.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent myIntent = new Intent(v.getContext(), PlayVideo_activity.class);
				startActivityForResult(myIntent, 0);
			}
		});
    }
}